const mongoose = require('mongoose')

let petSchema = new mongoose.Schema({
    id:{
        type:String,
        required:true,
        unique:true
    },
    pname:{
       type:String,
       required:true
    },
    kind:{
        type:String,
        required:true
    },
    size:{
      type:String,
      required:true
    },
    gender:{
        type:String,
        required:true
    },
    age:{
        type:Number,
        required:true
    },
    details:{
        type:String
    },
    belong:{
        type:String,
        require:true
    },
    profile:{
        type:String,
        require:true
    },
    type:{
      type:String,
      required:true
    },
    height: String,
    weight: String,
    color: String,
    isExist: Boolean,
    charact: Array,
    reason: String
})

module.exports = mongoose.model('pet',petSchema,'pet')